<template>
	<view class="my">
		<!-- 头部 -->
		<view class="my-header">
			<view class="header-main">
				<view class="header-config" @click="goConfig">
					<image class="config-img" src="../../static/img/my/config.png" mode=""></image>
				</view>
				<view class="header-logo" @click="goLogin">
					<image class="logo-img" src="../../static/img/Furnishing3.jpg" mode=""></image>
					<view class="logo-name">用户昵称</view>
				</view>
			</view>
		</view>
		<!-- 订单 -->
		<view class="order">
			<view class="order-title" @click="goOrder">
				<view class="">我的订单</view>
				<view class="">全部订单></view>
			</view>
			<view class="order-list">
				<view class="order-item">
					<image class="order-img" src="../../static/img/my/order1.png" mode=""></image>
					<view class="">待付款</view>
				</view>
				<view class="order-item">
					<image class="order-img" src="../../static/img/my/order2.png" mode=""></image>
					<view class="">待发货</view>
				</view>
				<view class="order-item">
					<image class="order-img" src="../../static/img/my/order3.png" mode=""></image>
					<view class="">待收货</view>
				</view>
				<view class="order-item">
					<image class="order-img" src="../../static/img/my/order4.png" mode=""></image>
					<view class="">待评价</view>
				</view>
				<view class="order-item">
					<image class="order-img" src="../../static/img/my/order5.png" mode=""></image>
					<view class="">退货管理</view>
				</view>
			</view>
		</view>
		<!-- 内容列表 -->
		<view class="my-content">
			<view class="my-content-list">
				<view class="my-content-item">
					<view class="">我的收藏	</view>
					<view class=""> > </view>
				</view>
				<view class="my-content-item">
					<view class="">我的收藏	</view>
					<view class=""> > </view>
				</view>
				<view class="my-content-item">
					<view class="">我的收藏	</view>
					<view class=""> > </view>
				</view>
				<view class="my-content-item">
					<view class="">我的收藏	</view>
					<view class=""> > </view>
				</view>
				<view class="my-content-item">
					<view class="">我的收藏	</view>
					<view class=""> > </view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			// 跳转至设置页
			goConfig(){
				uni.navigateTo({
					url:'/pages/my-config/my-config'
				})
			},
			// 跳转至订单页
			goOrder(){
				uni.navigateTo({
					url:'/pages/my-order/my-order'
				})
			},
			// 跳转至登录页
			goLogin(){
				uni.navigateTo({
					url:'/pages/login/login'
				})
			}
			
		}
	}
</script>

<style scoped>
.my-header{
	background: url(@/static/img/my/mybg.png) no-repeat;
	width: 100%;
	height: 400rpx;
}
.header-main{
	position: relative;
	top: 120rpx;
}
.header-config{
	position: absolute;
	left: 20rpx;
}
.config-img{
	width: 40rpx;
	height: 40rpx;
}
.header-logo{
	/* background-color: red; */
	position: absolute;
	left: 50%;
	margin-left: -60rpx;
	width: 120rpx;
	height: 120rpx;
}
.logo-img{
	width: 120rpx;
	height: 120rpx;
	border: 2rpx solid #c5c5c5;
	border-radius: 50%;
	background-color: #FFFFFF;
}
.logo-name{
	font-weight: bold;
	/* align-content: center; */
	color: #FFFFFF;
}
.order-title{
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20rpx;
}
.order-list{
	display: flex;
	padding: 20rpx;
}
.order-item{
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}
.order-img{
	width: 66rpx;
	height: 66rpx;
}
.my-content{
	margin: 20rpx 0;
	padding: 0 20rpx;
}
.my-content-item{
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20rpx 0;
	/* border-top: 2px solid #cccccc; */
	border-bottom: 2px solid #cccccc;
}
</style>
